package com.bruce.demo1.principles.demo6.crp.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 新能源车
 * @AUTHOR CNBruceLee
 * @DATE 2021/6/30 8:30
 */
public class ElectricCar extends Car {

    @Override
    public void move() {
        System.out.println(this.color.getColor() + "新能源汽车动起来了");
    }

    public Color setColor(Color color) {
        return this.color = color;
    }
}
